<?php

C_base::yn_file('m'.DS.'Model.php');
class baseModel extends model{
	
/***************************admin表开始********************************/
	function cha($w){
		return $this->admin()->w($w)->s();
	}
	
	function chass($w){
		return $this->admin()->w($w)->ss();
	}
	
	function xiu($w,$u){
		return $this->admin()->w($w)->u($u);
	}
	
	function xie($c){
		return $this->admin()->c($c);
	}
	
	function admin(){
		return $this->db_cms()->admin;
	}
		
/***************************配置文件开始**********************************/
	function con_s(){
		return $this->con()->s();
	}
	
	function con(){
		return $this->db_cms()->config;
	}
	
/********************************验证码开始******************************/
	function yzm_c($w){//添加
		return $this->yzm()->c($w);
	}
	
	function yzm_s($w){//查询单条
		return $this->yzm()->w($w)->s();
	}
	
	function yzm_ss($w=array()){//查询多条
		return $this->yzm()->w($w)->ss();
	}
	
	function yzm_u($w,$u){//修改
		return $this->yzm()->w($w)->u($u);
	}
	
	function yzm_d($w){//删除
		return $this->yzm()->w($w)->d();
	}
	/**
	 * 数据表
	 */
	function yzm(){
		return $this->db_cms()->rm_yzm;
	}
	
	
}